using UnityEngine;
using System.Collections;

public class GEstao : MonoBehaviour {

	// Use this for initialization
	float cronometro;
	public GameObject inimigo;
	public GameObject player;
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update ()
	{
		cronometro += Time.deltaTime;
		if(cronometro >= 2)
		{
			Instantiate(inimigo, new Vector3(player.transform.position.x + 10, player.transform.position.y, player.transform.position.z), inimigo.transform.rotation);
			cronometro = 0;
		}
	}
}
